package com.jxbai.design.pattern.dcxy.decorator;

/**
 * @author jxbai
 * @date 2022/1/12 0012
 */
public class MeiYanDecorator implements TiktokDecorator{

    private ManTikTok man;

    public MeiYanDecorator(ManTikTok man) {
        this.man = man;
    }

    @Override
    public void tiktok() {
        //开启美颜
        enable();

        //开始直播
        man.tiktok();
    }

    /**
     * 定义的增强功能
     */
    @Override
    public void enable() {
        System.out.println("开启美颜.....");
    }
}
